using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Data.Interfaces;
using System.ServiceModel;
using System.Configuration;
using Data.Interfaces.Callback;
using Data;
using Server;


namespace Server.Services
{
    public class ConnectService:IConnectService
    {

        public ConnectService()
        {
           /* ServiceHost duplexConnectService = new ServiceHost(typeof(ConnectService));
            duplexConnectService.AddServiceEndpoint(typeof(IConnectService), new NetTcpBinding(SecurityMode.None), ConfigurationSettings.AppSettings["ConnectServiceServerAdress"]);
            duplexConnectService.Open();*/
        }

        public bool VerifPseudo(string pseudo)
        {
            if (!(MainWindow.ListPseudo.Contains(pseudo)))
            {
                MainWindow.ListPseudo.Add(pseudo);

                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
